import CryptoJS from 'crypto-js';
function decrypt(word, keyStr) {
    keyStr = keyStr ? keyStr : 'HHKJ0okmNJI(hhkj';
    var key = CryptoJS.enc.Utf8.parse(keyStr);
    var decrypt = CryptoJS.AES.decrypt(word, key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });
    return CryptoJS.enc.Utf8.stringify(decrypt).toString();
}
export default {
    //解密
    decrypt(str) {
        let valueStr = decrypt(str);
        let dataJson = JSON.parse(valueStr);
        return dataJson;
    },


}
